<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./lib/vue-2.4.0.js"></script>
</head>

<body>
  <div id="app">
   <cpn><h3 slot="aa">h3h3h3h3</h3></cpn>
    <!-- <cpn><a href="#">baidu</a> </cpn> -->
    <!-- <cpn></cpn> -->
    
  </div>
  <template id="cpn">
    <div>
      <slot name="aa"></slot>  
      <slot> <button>click</button></slot> 
      <slot></slot>  
      
    </div>
  </template>
  <script>
    const cpn = {
      template: "#cpn"
    }
    const app = new Vue({
      el: "#app",
      data() {
        return {

        }
      },
      components: {
        cpn
      }
    })

  </script>
</body>

</html>